<?php
defined('BY_JYA') or exit('error');
$list = array(
			array('title'=>'应用工具','list'=>array(
					array('name'=>'jy_commission','title'=>'微客分销','desc'=>'全民微客人人分销','icon'=>'',),
					array('name'=>'jy_mteamfee','title'=>'商户团长极差分红','desc'=>'商户社区团长带团分红','icon'=>'',),
					array('name'=>'jy_area_agent','title'=>'总部区域代理','desc'=>'区域代理商经销商','icon'=>'',),
					array('name'=>'jy_mareafee','title'=>'商户区域代理商','desc'=>'区域代理商经销商','icon'=>'',),
					array('name'=>'jy_globonus','title'=>'全民股东','desc'=>'股东形式运营店铺','icon'=>'',),
					array('name'=>'jy_weishopvideomerch','title'=>'短视频商城多商户版','desc'=>'让短视频变形的商城','icon'=>''),
					array('name'=>'jy_videoshop','title'=>'电商版抖音','desc'=>'让短视频变形的商城','icon'=>''),
					array('name'=>'jy_weishopapplive','title'=>'全民分销直播客','desc'=>'全民做主播带货','icon'=>''),
					array('name'=>'jy_weishoplive','title'=>'互动直播','desc'=>'主播发红包,券','icon'=>''),
					array('name'=>'jy_creditshop','title'=>'积分商城','desc'=>'让积分产生二次消费','icon'=>'',),
					array('name'=>'jy_bargain','title'=>'砍价活动','desc'=>'大家一起来砍价','icon'=>'',),
					array('name'=>'jy_bigwheel','title'=>'大转盘','desc'=>'随时随地，大转盘','icon'=>''),
					array('name'=>'jy_kefu','title'=>'全网客服','desc'=>'7种客服方式选择','icon'=>'',),
					array('name'=>'jy_merch2fee','title'=>'独立多商户美丽天天秒','desc'=>'平台+独立多商户粉丝出局分销','icon'=>'',),
					array('name'=>'jy_shifu','title'=>'掌上师傅','desc'=>'师傅手机接单抢单','icon'=>'',),
			)),
);
//判断是否基本设置了
$inplugins=array();
$noplugins=array();
foreach($list as $k=>&$type){
		foreach($type['list'] as $i=>&$p){
			$install = check_permission($p['name']);
			$plugin=pdo_get('core_plugins',array('name'=>$p['name']),array('title','image','hide'));
			if($plugin['hide']){
				unset($type['list'][$i]);
			}
			if($install){
				$p['title']=$p['name']!='jy_weishop' && $plugin['title']?$plugin['title']:$p['title'];
				$p['image']=$p['image']?:$plugin['image'];
				$p['is_install'] = 1;
				$p['is_show'] = 1;
			}else{
				$noplugins[]=$p['name'];
				//unset($type['list'][$i]);
				$p['is_install'] = 0;
				$p['is_show'] = 0;
				if($_SESSION['isfounder']){
					$p['is_show'] = 1;
				}
			}
		}
}
return  $list;
?>